<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>Android WebView测试</title>
</head>
<body>

    <script type="text/javascript">
        function alertAndroid(title,message) {
            Android.alert(title,message)
        }
    </script>
    <button type="button" title="调用Android alert" id="button1"
            onclick="alertAndroid('Title: Alert From JS','Alert From JS')"
    style="font-size: 24pt">调用Android</button>

</body>
</html>